package com.tianya.portal.blog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tianya.portal.common.core.domain.BaseEntity;
import com.tianya.portal.system.domain.SysFile;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 文学档案表 BlogBookArchives
 *
 * @author tianya
 * @datetime 2024-06-10
*/
public class BlogBookArchives extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 编号*/
	private String id;
	/** 标题*/
	private String title;
	/** 内容*/
	private String content;
	/** 描述*/
	private String description;
	/** 作者*/
	private String author;
	/** 置顶标志*/
	private Long topFlag;
	/** 排序*/
	private Long orderNum;
	/** 创建人*/
	private String createBy;
	/** 创建时间*/
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createTime;
	/** 更新人*/
	private String updateBy;
	/** 更新时间*/
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date updateTime;
	/** 删除标志*/
	private String deleteFlag;
	/** 预览图片编号*/
	private String imageId;
	/** 预览附件 */
	private SysFile sysFile;

    /** 编号*/
	public void setId(String id){
		this.id = id;
	}
    /** 编号*/
	public String getId(){
		return id;
	}
    /** 标题*/
	public void setTitle(String title){
		this.title = title;
	}
    /** 标题*/
	public String getTitle(){
		return title;
	}
    /** 内容*/
	public void setContent(String content){
		this.content = content;
	}
    /** 内容*/
	public String getContent(){
		return content;
	}
    /** 描述*/
	public void setDescription(String description){
		this.description = description;
	}
    /** 描述*/
	public String getDescription(){
		return description;
	}
    /** 作者*/
	public void setAuthor(String author){
		this.author = author;
	}
    /** 作者*/
	public String getAuthor(){
		return author;
	}
    /** 置顶标志*/
	public void setTopFlag(Long topFlag){
		this.topFlag = topFlag;
	}
    /** 置顶标志*/
	public Long getTopFlag(){
		return topFlag;
	}
    /** 排序*/
	public void setOrderNum(Long orderNum){
		this.orderNum = orderNum;
	}
    /** 排序*/
	public Long getOrderNum(){
		return orderNum;
	}
    /** 创建人*/
	public void setCreateBy(String createBy){
		this.createBy = createBy;
	}
    /** 创建人*/
	public String getCreateBy(){
		return createBy;
	}
    /** 创建时间*/
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}
    /** 创建时间*/
	public Date getCreateTime(){
		return createTime;
	}
    /** 更新人*/
	public void setUpdateBy(String updateBy){
		this.updateBy = updateBy;
	}
    /** 更新人*/
	public String getUpdateBy(){
		return updateBy;
	}
    /** 更新时间*/
	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}
    /** 更新时间*/
	public Date getUpdateTime(){
		return updateTime;
	}
    /** 删除标志*/
	public void setDeleteFlag(String deleteFlag){
		this.deleteFlag = deleteFlag;
	}
    /** 删除标志*/
	public String getDeleteFlag(){
		return deleteFlag;
	}
    /** 预览图片编号*/
	public void setImageId(String imageId){
		this.imageId = imageId;
	}
    /** 预览图片编号*/
	public String getImageId(){
		return imageId;
	}

	public SysFile getSysFile() {
		return sysFile;
	}

	public void setSysFile(SysFile sysFile) {
		this.sysFile = sysFile;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("description", getDescription())
            .append("author", getAuthor())
            .append("topFlag", getTopFlag())
            .append("orderNum", getOrderNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteFlag", getDeleteFlag())
            .append("imageId", getImageId())
            .toString();
    }
}
